﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace AppFramework.Migrations
{
    public partial class add_model_ProductionReturn2 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "tb_ProductionReturninfo",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Returnedmaterialnumber = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Returnedmaterialname = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Returndate = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Returnperson = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Workordername = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Workordernumber = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Taskname = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Missionnumber = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Processroute = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Processname = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Stats = table.Column<int>(type: "int", nullable: false),
                    IsDeleted = table.Column<bool>(type: "bit", nullable: false),
                    CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    CreatorUserId = table.Column<long>(type: "bigint", nullable: true),
                    LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    LastModifierUserId = table.Column<long>(type: "bigint", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_tb_ProductionReturninfo", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "tb_ProductionReturninfo");
        }
    }
}
